package com.bookcloud.java21.chapter4.类的this关键字46;

public class TestThis {
  public static void main(String[] args) {
    // 验证this对象地址
    ThisKeywordExample thisKeywordExample = new ThisKeywordExample();
    System.out.println(thisKeywordExample);
    thisKeywordExample.printThisAddr();
    // 调用getThis方法
    ThisKeywordExample thisKeywordExample1 = thisKeywordExample.getThis();
    System.out.println("方法返回的this地址：" + thisKeywordExample1);
  }
}
